package com.heima.apis.article;

import com.heima.apis.article.fallback.IArticleClientFallback;
import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author 谢金成
 * @date 2024/4/10 17:08
 */
@FeignClient(value = "leadnews-article", fallback = IArticleClientFallback.class)
public interface IAritcleClient {

    @PostMapping("/api/v1/article/save")
    ResponseResult saveArticle(ArticleDto dto);
}
